package com.foreknow.demo_springtest.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@Controller与@Responsebody 等价于 @RestController
@RestController
public class HelloWorldController {
    @RequestMapping("/hello")
    public String index() {
        return "hello world12345";
    }
}
